package com.mc.cloud.mall.zuul.fegin;

import com.mc.cloud.mall.user.model.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName UserFeignCloent
 * @Author MC
 * @Date 2021/5/21 16:26
 * @Version 1.0
 **/
@FeignClient(value = "cloud-user-service")
public interface UserFeignClient {
    
    @PostMapping("/isAdmin")
    public Boolean isAdmin(@RequestBody User user) ;
    
}
